<%@page import="java.awt.Button"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="doantotnghiep.model.Customer"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@page import="java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
</head>
<body>
	<div align="center">
		<h1 style="color: blue;">QUẢN LÝ PHÒNG BAN</h1>
		<table class="table1" id="roomtable" border="1">
			<tr>
				<th scope="col" abbr="Starter">Mã phòng ban</th>
				<th scope="col" abbr="Starter">Tên phòng ban</th>
				<th scope="col" abbr="Starter">Số nhân viên</th>
				<th scope="col" abbr="Starter"></th>
				<th scope="col" abbr="Starter"></th>
			</tr>
			<c:forEach items="${listAllRoom.roomDTOs}" var="room"
				varStatus="status">
				<tr class="<c:if test="${status.count % 2 == 0}">even</c:if>">
					<td>${room.id}</td>
					<td>${room.roomName}</td>
					<td>${room.numberOfStaff}</td>
					<td><a id="editroom"
						href="#" onclick="updateRoom(${room.id})"><img src="<c:url value="/resources/images/edit-icon.png"/>"/></a></td>
					<td><a id=deleteroomlink
						href="#" onclick="deleteRoom(${room.id})"><img src="<c:url value="/resources/images/delete-icon1.png"/>"/>
							</a></td>
				</tr>
			</c:forEach>

		</table>
		    <a href="#"><input class="button" id="addroom" type="button"
					value="Thêm"></a>
	</div>
	

</body>
</html>